<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<!--Ueditor-->
	
	<script type="text/javascript" charset="utf-8" src="<?php echo SITE_URL.'ueditor/'; ?>ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo SITE_URL.'ueditor/'; ?>ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="<?php echo SITE_URL.'ueditor/'; ?>lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo SITE_URL.'ueditor/'; ?>jquery.min.js"></script>
	<!--Ueditor End-->
	<style type="text/css">
        div{
            width:100%;
        }
    </style>
</head>
<body>
	<img src="/ghc/ueditor/php/upload/image/20150325/1427229402946980.png" title="1427229402946980.png" alt="2014-11-16 22:03:04 的屏幕截图.png"/>
	<script id="myEditor" type="text/plain" style="width:1024px;height:500px;"></script>
	<script type="text/javascript">
    	var ue = UE.getEditor('myEditor');
    	//editor.render("myEditor");
	</script>

	<button id="b">提交</button>
</body>
<script>
	$(document).ready(function(){
		$("#b").click(function(){
    				$.post("<?php echo SITE_URL.'index.php/test/ueditorget' ?>",
    						{
								name:"Donald Duck",
								content:UE.getEditor('myEditor').getContent()
							},
    						function(data,status){
      							alert(data);
    						});
			//alert(UE.getEditor('myEditor').getContent());
			
			console.log(UE.getEditor('myEditor').getContent());
  		});
	});
</script>
</html>
